<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>店铺列表</title>

    <!-- Bootstrap Core CSS -->
    <link href="__PUBLIC__/home/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/home/css/common.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <!--<link href="_PUBLIC__/font/css/font-awesome.min.css" rel="stylesheet" type="text/css">-->

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <link href="__PUBLIC__/home/css/common.css" rel="stylesheet">
</head>

<body>
<div class="container-fluid">
    <!-- Page Heading -->
    <div class="row">
        <div class="col-md-12">
            <ol class="breadcrumb">
                <li class="active">
                    <i class="fa fa-fw fa-edit"></i>
                    店铺列表
                </li>
            </ol>
        </div>
    </div>
    <!-- /.row -->
    <!--<div class="row">-->
        <!--<div class="col-xs-12">-->
            <!--<button type="button" class="btn btn-sm btn-primary btn-close" id="xx-btn-add">添加员工</button>-->
            <!--<button type="button" class="btn btn-sm btn-default btn-close" id="xx-btn-excel">导出员工</button>-->
        <!--</div>-->
    <!--</div>-->
    <div class="row">
        <div class="col-lg-12">
            <h2></h2>
            <div class="">
                <table class="table table-bordered table-hover table-striped" id="dataTables-date">
                    <thead>
                    <tr>
                        <th>ID</th>
                        <th>店铺名称</th>
                        <th>所属店铺</th>
                        <th>添加时间</th>
                        <th>昨日邀请人数</th>
                        <th>今天邀请人数</th>
                        <th>共邀请人数</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="list" key="k" id ="ord">
                        <tr>
                            <td>{$k}</td>
                            <td>{$ord.store_name}</td>
                            <td>{$sessionInfo['store_name']}</td>
                            <td>{$ord.add_time|date="Y-m-d H:i",###}</td>
                            <td>{$ord.yesterday}</td>
                            <td>{$ord.today}</td>
                            <td>{$ord.total}</td>
                            <td><a href="{:U('Store/excel',array('store_id'=>$ord['store_id']))}">导出邀请人</a></td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <!-- /.row -->
    <div class="pages">
        {$page}
    </div>
</div>



<script src="__PUBLIC__/home/js/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="__PUBLIC__/home/js/bootstrap.min.js"></script>

<!-- iframe自适应高度 -->

</body>
<script type="text/javascript">

    $(".btn-close").click(function () {
        window.parent.$('.bg-model').hide();
    })

    $("#xx-btn-add").click(function () {
        location.href = "{:U('Member/insert')}";
    })
    $("#xx-btn-excel").click(function(){
        location.href = "{:U('Member/excel')}";
    })

</script>

</html>
